package com.bootcamp.s2_0922.ds.Exercise._0922_ex1;

/**
 * @program: 35th_2_DS_snowlee
 * @description:
 * @author: Keyu Li
 * @create: 2021-09-22 21:18
 **/

public class Node{
    String value;
    Node next;

    public Node(String value, Node next) {
        this.value = value;
        this.next = next;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Node{");
        sb.append("value='").append(value).append('\'');
        sb.append(", next=").append(next);
        sb.append('}');
        return sb.toString();
    }
}